package
{
   import com.facebook.graph.Facebook;
   
   import flash.external.ExternalInterface;
   
   import jp.progression.casts.CastDocument;
   import jp.progression.config.WebConfig;
   
   import scenes.FacebookTest_sc;
   
   /**
    * @author  cjboy1984@gmail.com
    */
   public class FacebookTest extends CastDocument
   {
      
      // --------------------- LINE ---------------------
      
      public function FacebookTest()
      {
         super('root', FacebookTest_sc, new WebConfig(null, true, false) );
      }
      
      // ################### protected ##################
      
      override protected function atReady():void
      {
         // debug
         //Debugger.addTarget( manager );
         //Locale.language = Locale.JAPANESE;
         //stage.addChild(new Stats()); // benchmark
         //stage.addChild(new MyDebug()); // my debug utils
         
         if (ExternalInterface.available)
         {
            Facebook.init('152204381520601');
         }
         
         // manager
         manager.sync = true; // deep-link SWFAddress
         manager.goto(manager.syncedSceneId);
      }
      
      // #################### private ###################
      
      // --------------------- LINE ---------------------
      
      // --------------------- LINE ---------------------
      
   }
   
}
